package com.astar.service;
import com.astar.pojo.Admin;
import com.astar.pojo.AdminLogin;
import com.astar.pojo.vo.RespBean;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author weishen
 * @since 2021-06-21
 */

public interface IAdminService extends IService<Admin> {

    /**
     * 登录成功返回token
     * @param adminLogin
     * @param request
     * @return
     */
    RespBean login(String username, String password,String code, HttpServletRequest request);

    /**
     * 根据用户名查找用户信息
     * @param name
     * @return
     */
    Admin findAdminByUserName(String name);


}
